<html xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns="http://www.w3.org/1999/xhtml"
      
      xmlns:p="http://primefaces.org/ui"> 

    <f:view>  
        <head>
            <title>A Simple JavaServer Faces Application</title>
        </head>
        <body>

            <h:form>
                <h3>Please enter your name and password</h3>
                <table>
                    <tr>
                        <td>Name:</td>
                        <td>
                            <h:inputText value="#{user.name}"/>
                        </td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td>
                            <h:inputSecret value="#{user.password}"/>
                        </td>
                    </tr>
                </table>
                <p>
                    <h:commandButton value="Login" action="login"/>
                </p>
                
                <p:accordionPanel>
                    <p:tab title="First Tab Title">
                        <h:outputText value= "Lorem"/>
                        ...More content for first tab
                    </p:tab>
                    <p:tab title="Second Tab Title">
                        <h:outputText value="Ipsum" />
                    </p:tab>
                    //any number of tabs
                </p:accordionPanel>
                
            </h:form>
        </body>
    </f:view>
</html>




